package sketch.ounit.fuzz;

import java.util.LinkedList;
import java.util.List;

import sketch.ounit.Values;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

public class AssembledSequenceWithArgsTest extends TestCase {
	
	public static Test suite() {
		return new TestSuite(AssembledSequenceWithArgsTest.class);
	}
	
	public void testAssebmledSequenceConstr() {
		System.out.println();
		System.out.println("testAssebmledSequenceConstr repeatedly....");
		List<Class<?>> class_list = new LinkedList<Class<?>>();
		class_list.add(treemap.TreeMap.class);
		ExistingObjectFuzzer.setTimeLimit(2);
		ExistingObjectFuzzer.generate_object_pool(class_list);
		ExistingObjectFuzzer.print_sequence = true;
		for(int i = 0; i < 50; i++) {
			treemap.TreeMap map = new treemap.TreeMap();
			//treemap.TreeMap
			Values.random(map, treemap.TreeMap.class, 111, 222, 333);
			System.out.println("The map is: " + map);
		}
	}
	
	public void testGeneratedTreeMap() {
		treemap.TreeMap map = new treemap.TreeMap();
		java.lang.Integer arg_name_0 = 111;
		java.lang.Integer arg_name_1 = 222;
		java.lang.Integer arg_name_2 = 333;
		map.print();
		map.containsKey(arg_name_1);
		java.lang.Integer var0 = new java.lang.Integer(1);
		map.put(var0);
		System.out.println(map);
	}
}
